package com.zzyl.serve.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.serve.domain.NursingPlan;
import com.zzyl.serve.domain.NursingProjectPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 护理计划Mapper接口
 * 
 * @author ruoyi
 * @date 2025-09-06
 */
public interface NursingPlanMapper extends BaseMapper<NursingPlan>
{
    /**
     * 查询护理计划列表
     * 
     * @param nursingPlan 护理计划
     * @return 护理计划集合
     */
    public List<NursingPlan> selectNursingPlanList(NursingPlan nursingPlan);

    /**
     * 批量删除护理计划和项目关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNursingProjectPlanByPlanIds(Long[] ids);
    
    /**
     * 批量新增护理计划和项目关联
     * 
     * @param nursingProjectPlanList 护理计划和项目关联列表
     * @return 结果
     */
    public int batchNursingProjectPlan(List<NursingProjectPlan> nursingProjectPlanList);
    

    /**
     * 通过护理计划主键删除护理计划和项目关联信息
     * 
     * @param id 护理计划ID
     * @return 结果
     */
    public int deleteNursingProjectPlanByPlanId(Long id);

    /**
     * 通过护理计划主键查询护理计划和项目关联信息
     *
     * @param id 护理计划ID
     * @return 结果
     */
    public List<NursingProjectPlan> selectNursingProjectPlanList(@Param("plan_id") Long id);
}
